/**
 * const util
 */

var consts = {
    FIXEDBTN_MAX_NUMS: 5,      // 浮屏按键最大个数
    PERMISSION_READONLY: "PERMISSION_READONLY",
    SWITCH_TYPE: {             // 切换模式定义
        H5_AR: "H5AR",         // 平面h5
        PLANE_AR: "PlaneAR",   // 平面
        THREED_AR: "ThreedAR"  // 3d
    },
    EXTRA_ATTRS: [
        "uuid"
    ],
    THREED: {
        MESH_TYPE: {
            MESH: "Mesh",
            OBJECT3D: "Object3D"
        },
        TEXTS: {
            GENERATION: $._('The model generation...'),
            CHECK_FILE: $._('Please check model file'),
            FILE_ERROR: $._('the model file is error'),
            GENERATED: $._('Models have been generated'),
            PREVIEW: $._("Please use the mobile phone Preview"),
            GENERATE_ERROR: $._('The model generates an error')
        }
    },
    DEFAULT_PAGE_COLOR: "eaedee",
    DEFAULT_CATE_ID: "564ecb88e76be90005a0970c",
    NO_VIDEO_SRC: "/static/new_version/image/default_video.jpg",
    NO_PICTURE_SRC: "/static/new_version/image/default_picture.jpg",
    REDBAG_DEFAULT_SRC: "/static/idealsee/images/new_editor/editor/rebag.png",
    HOPEBANK_DEFAULT_SRC: "/static/idealsee/images/new_editor/editor/hope_redbag.png",
    VALID_COLOR_LENGTH: 6,
    EDITOR_TYPE: {
        UNCHECKED: "0",
        EDITOR: "1",
        TEMPLATE: "2"
    },
    RANGE: { // 输入框范围定义
        OFFSET: 2000,
        ROTATE: 360,
        SIZE: {
            MIN: 1,
            MAX: 2000
        },
        OPACITY: {
            MIN: 0,
            MAX: 1
        }
    },
    PAGE_BACKGROUND: { // 页面背景定义
        SIZE: {
            WIDTH: 480,
            HEIGHT: 760
        }
    },
    DATA_OPERATION: {
        TYPE: {
            ADD: "add",
            DELETE: "delete",
            CHANGEPAGE: "changePage"
        }
    },
    EVENTS: {
        LAYER_DATA_SAVED: "layerDataSaved",
        RECOGNIZE_DATA_SAVED: "recognizeDataSaved",
        REQUEST_CHANGED: "requestChanged",
        EDITOR_DATA_SAVED: "editorDataSaved",
        THREED_WIDGET_SELECTED: "threedWidgetSelected",
        STEREO_EDITBAR_CHANGED: "stereoEditbarChanged",
        PAGE_BACKGROUND_CHANGED: "pageBackgroundChanged",
        MATERIAL_WIDGET_SELECTED: "materialWidgetSelected",
        THREED_WIDGET_LIST_CHANGED: "threedWidgetListChanged",
        THREED_WIDGET_PROPERTY_CHANGED: "threedWidgetPropertyChanged",
        THREED_WIDGET_VISIBILITY_CHANGED: "threedWidgetVisibilityChanged"
    },
    SWITCH_EDITOR: {
        AR: "ar",
        PREVIEW: "preview",
        RECOGNIZE: "recognize"
    },
    PROPERTY_SHAPE_RECT: {
        WIDTH: 66,
        HEIGHT: 66
    },
    Z_MAGNITUDE: 100,
    MIN_BUTTON_SIZE: 1,
    WIDGET_OFFSETS: 5,
    AUTO_SAVE_DURATION: 5,
    ANIMATION_MAX_NUM: 4,
    PAGE_MAX_SIZE: 10,
    RENDERER: {
        TEXT: "text",
        GRAPH: "graph",
        LINE: "line",
        PICTURE: "picture",
        VIDEO: "video",
        AUDIO: "audio",
        DRAW: "draw",
        ALBUM: "album",
        THREED: "3d",
        TEXT: "text",
        EXTEND: "extend",
        REDBAG: "redbag",
        FIXEDBTN: "fixedbtn",
        LOOKERS: "lookers",
        HOPEBANK: 'hopebank',
    },

    ERRORS: {
        PAGE_MAX: $._('Page can not larger than 10')
    },

    TEXT_TYPES: [10],
    MEDIA_TYPES: [4, 7, 9],
    THREED_TYPES: [5],
    GRAPH_TYPES: [12],
    EXTEND_TYPES: [0, 1, 2, 3, 6, 8, 21, 22],
    REDBAG_TYPES: [16],
    HOPEBANK_TYPES: [23],

    WIDGET_NO_EVENT: [3, 4, 6, 7],
    VECTOR_WIDGETS: [10, 12, 16, 19, 23],
    WIDGET_PROPERTY_IN_ACTIONS: [7, 9, 4, 5, 6],
    STANDARD_BUTTON_TYPES: [0, 1, 2, 3, 7, 8, 21],
    FEATURE_BUTTON_TYPES: [4, 5, 6, 9, 10, 12],
    YIXUN_GAMES_TYPES: [16, 20, 22, 23],
    ONLYWIDGETTYPE:[16,20],//仅添加唯一组件的type
    FIXED_BUTTON_TYPES: [19],
    WIDGET_TYPE_NO_EDITABLE_TYPES: [0, 1, 2, 8],
    WIDGET_IN_THREED_ANIMATION_TYPE: [6, 8, 10, 11, 12, 23, 24, 26],
    WIDGET_IN_VIDEO_ANIMATION_TYPE: [6, 8, 9, 10, 11, 12, 23, 24, 26],
    WIDGET_TYPE_NOT_EQ_ACTION_TYPES: [9, 10, 12, 6, 4, 7, 5],
    WIDGET_FADE_IN_ANIMATION_TYPE: [1, 2, 3, 4, 5, 6, 8, 10, 11, 12, 24, 25, 26, 27, 28],
    WIDGET_FADE_OUT_ANIMATION_TYPE: [7,23],
    WIDGET_TYPE_HAS_ACTION_URL: [1, 8], // app下载,web链接
    WIDGET_HAS_PATH_ANIMATION_TYPE: [12, 24, 25],//包含路径的动效
    DEFAULT_SHAPE: "rectangle",
    DEFAULT_TEXT: $._("edit the text in the right attribute"),
    WIDGET_CLASS_PREFIX: "#wgt-id-",
    WIDGET_CLASS_NONE_PREFIX: "wgt-id-",
    UNSAVED_WIDGETS_KEY: "un_saved_widgets",
    UNSAVED_PAGEIDS_KEY: "un_saved_page_ids",
    UNSAVED_TIMELINES_KEY: "un_saved_timelines",

    FOCUS_TABS: {
        PAGE: "page",
        H5AR: "h5ar",
        SHARE: "share",
        EVENT: "event",
        REDBAG: "redbag",
        PROPERTY: "property",
        ALIGNMENT: "alignment",
        ANIMATION: "animation",
        FIXEDBTN: "fixedbtn",
        LOOKERS:"lookers",
        HOPEBANK: "hopebank"
    },
    ROTATE_DIRECTION: {
        CLOCKWISE: 0,
        COUNTERCLOCKWISE: 1
    },
    ZOOM_TYPE: {
        ENLARGE: 0,
        NARROW: 1
    },
    LOOP_TYPE: {
        NONE: 0,
        LOOP: 1,
        PINGPONG: 2
    },
    AN_DIRECTION: {
        TOP_TO_BOTTOM: 0,
        BOTTOM_TO_UP: 1,
        LEFT_TO_RIGHT: 2,
        RIGHT_TO_LEFT: 3
    },
    AN_LOOPTYPE: {
        CLRCLE:1,
        PINGPONG:2
    },
    EDIT_MODE: {
        ANIMATION: "ANIMATION",
        DIALOG: "DIALOG",
        PAGE: "PAGE",
        PATH: "PATH",
        TEXT: "TEXT",
        TRIGGER: "TRIGGER"
    },
    DEFAULT_FONT_SIZES: [
        "8pt",
        "10pt",
        "12pt",
        "14pt",
        "18pt",
        "24pt",
        "36pt",
        "48pt",
        "64pt"
    ],
    AN_TYPE: {
        ANIMATION_NONE: 0, //无动画
        FADE_IN: 1, //淡入
        ERASE: 2, //擦出
        FLY_INTO: 3, //飞入
        CUT: 4, //切入
        FLICKER: 5, //闪烁
        BOUNCE: 6, //弹跳
        FADE_OUT: 7, //淡出
        ZOOM: 8, // 放缩
        BREATHING_LIGHT: 9,
        ROTATE: 10, // 旋转
        TRUN: 11, //翻转
        PATH: 12, //路径动画
        ZOOMOUT:23,//缩小消失
        ZOOM_MOVE: 24,
        FADE_IN_MOVE: 25,
        ZOOM_ROTATE: 26,
        ROTATE_FLY_INTO: 27,
        LIGHT_ERASE: 28,
    },
    WIDGET_NO_EVENT_DISPLAY: [{
        name: $._("Video"),
        value: 4
    }, {
        name: $._("3D Model"),
        value: 5
    }, {
        name: $._("Music"),
        value: 6
    }, {
        name: $._("Album"),
        value: 7
    }, {
        name: $._("Introduction to expand"),
        value: 3
    }],
    STANDARD_BUTTONS: [{
        name: "call_me",
        type: 0,
        width: 180,
        height: 45,
        color: "f76b1c",
        shape: "circle",
        type_display: $._('Make a call'),
        icon_class: "icon-phone",
        radius: "4",
        tip_text: $._('Make a call'),
        icon: 1
    }, {
        name: "geo",
        type: 2,
        width: 180,
        height: 45,
        color: "f76b1c",
        shape: "circle",
        type_display: $._('navigation position'),
        icon_class: "icon-map",
        radius:"4",
        tip_text:$._('navigation position'),
        icon: 1
    }, {
        name: "app_download",
        type: 8,
        width: 180,
        height: 45,
        color: "f76b1c",
        shape: "circle",
        type_display: $._("APP DownLoad"),
        icon_class: "icon-appdown",
        radius:"4",
        tip_text:$._("APP DownLoad"),
        icon: 1,
    }, {
        name: "website",
        type: 1,
        width: 180,
        height: 45,
        color: "f76b1c",
        shape: "circle",
        type_display: $._('Web Link'),
        icon_class: "icon-link",
        radius: "4",
        tip_text: $._('Web Link'),
        icon: 1
    }, {
        name: "expand",
        type: 3,
        width: 180,
        height: 45,
        color: "f76b1c",
        shape: "circle",
        type_display: $._("Introduction to expand"),
        icon_class: "icon-image-text",
        radius: "4",
        tip_text: $._("Introduction to expand"),
        icon: 1
    }, {
        name: "album",
        type: 7,
        type_display: $._('Album'),
        icon_class: "icon-images",
        auto_play: 1,
        repeat: 1
    }, {
        name: "nearby",
        type: 21,
        width: 180,
        height: 45,
        color: "f76b1c",
        shape: "circle",
        type_display: "附近搜索",
        icon_class: "icon-nearby",
        radius: "4",
        tip_text: "附近搜索",
        icon: 1
    }],
    FEATURE_BUTTONS: [{
        name: "text",
        type: 10,
        color: "FFFFFF",
        type_display: $._("Text"),
        icon_class: "icon-text",
        width: 180,
        height: 20,
        t_font_family: "黑体",
        t_font_size: 12,
        text: ""
    }, {
        name: "graph",
        type: 12,
        width: 45,
        height: 45,
        color: "f76b1c",
        type_display:$._("Graph"),
        icon_class: "icon-square"
    }, {
        name: "picture",
        type: 9,
        offset_x: 0,
        offset_y: 0,
        type_display: $._('Picture'),
        icon_class: "icon-image"
    }, {
        name: "video",
        type: 4,
        width: 240,
        height: 160,
        type_display: $._("Video"),
        icon_class: "icon-movie",
        repeat: 1
    }, {
        name: "music",
        type: 6,
        width: 45,
        height: 45,
        color: "f76b1c",
        type_display: $._("Music"),
        icon_class: "icon-music",
        single_page: 1,
        auto_play: 1,
        repeat: 1
    }, {
        name: "model_3d",
        type: 5,
        width: 45,
        height: 45,
        color: "f76b1c",
        type_display: $._("3D Model"),
        icon_class: "icon-cube",
        light: { intensity:0.35 },
        select_animation: -1,
        scale: 1,
        auto_play: 1
    }],
    PAGE_AN_EVENTS: [{
        an_type: 0,
        name: $._('Displacement')
    }, {
        an_type: 1,
        name: $._('Path and Zoom')
    }, {
        an_type: 2,
        name: $._('Path and Rotate and Zoom')
    }],
    YIXUN_GAMES: [{
        name: $._("AR RedBag"),
        type: 16,
        type_display: $._("AR RedBag"),
        icon_class: "icon-redbag",
        width:147,
        height:188,
        red_game_duration:30,
        red_total_cash:10,
        red_packet_count:10,
        red_allot:1,
        red_ratio:0,
        red_auth:1,
        red_auth_times:0,
        red_auth_age:0,
        red_shared_can_again:0,
        auto_play:0,
        red_custom:0,
        start_time:0,
        has_end_set:1,//是否选定结束条件
        end_by_least_account:10,//账户余额
        brand_name: '幻视AR'
    },{
        name: "lookersBtn",
        type: 20,
        type_display: $._('Lookers'),
        icon_class: "icon-looker",
        radius:"22.5",
        width:150,
        height:150,
        start_time:0,
    },{
        name: $._("Hope Bank"),
        type: 23,
        type_display: $._("Hope Bank"),
        icon_class: "icon-hopebank",
        width:147,
        height:188,
        red_game_duration:30,
        red_total_cash:10,
        red_packet_count:10,
        red_allot:1,
        red_ratio:0,
//        red_auth:1,//游戏验证方式
        red_auth_times:0,
        red_auth_age:0,
        red_shared_can_again:0,
//        auto_play:0,//出现即触发
        red_custom:0,
//        start_time:0,//出现延迟时间
//        has_end_set:1,//是否选定结束条件
    },{
        name: "form",//表单组件
        type: 22,
        width: 180,
        height: 45,
        color: "f76b1c",
        shape: "circle",
        icon_class: "icon-form",
        radius: "4",
        icon: 1,
        type_display:$._("Form widgets")
    }],
    FIXED_BUTTONS: [{
        icon: 1,
        type: 19,
        width: 50,
        height: 50,
        radius: "25",
        start_time: 0,
        color: "f76b1c",
        name: "floatingbtn",
        type_display: $._('Fixed Button'),
        icon_class: "icon-floating"
    }],
    WIDGET_EVENTS_MAPPING: {
        0: "call",
        1: "website",
        2: "location",
        3: "introduce",
        8: "download",
        11: "animation",
        14: "playVideo",
        15: "pagejump",
        17: "materials",
        18: "animations",
        21: "nearby",
        22: "form"
    },
    WIDGET_EVENTS: [{
        value: 0,
        name: $._("Make a call")
    }, {
        value: 1,
        name: $._('Visit a web link')
    }, {
        value: 2,
        name: $._('navigation position')
    }, {
        value: 3,
        name: $._("View expand introduction")
    },{
        value: 11,
        name:$._("Trigger")
    }, {
        value: 14,
        name: $._("Play Video")
    }, {
        value: 15,
        name: $._("Page skip")
    }, {
        value: 17,
        name: $._("Change model map")
    }, {
        value: 18,
        name: $._("Play model action")
    }, {
        value: 21,
        name: "附近搜索"
    }, {
        value: 22,
        name: $._('submit form')
    },{
        value: 8, // 不属于交互事件，仅用于app下载交互元件
        name: $._("APP DownLoad")
    }],
    THREED_EVENTS: [{
        value: 17,
        name: "更改模型贴图"
    }, {
        value: 18,
        name: "播放模型动作"
    }],
    DIALOG_MAPPING: {
        PICTURE: "picture",
        VIDEO: "video",
        MUSIC: "music",
        THREED: "threed",
        ALBUM: "album",
        EXTEND: "extend",
        RESOURCE: "resource",
        UPLOAD_PICTURE: "uploadPicture",
        PREVIEW_IN_PHONE: "previewInPhone",

    },
    DIALOG_TYPE: {
        RESOURCE: 50,
        UPLOAD_PICTURE: 51,
        PREVIEW_IN_PHONE: 52,
        ADDRESS: 53,
        PERMISSION: 54,
        H5TIPS:55,
        PLAYVIDEO:56,//h5视频播放弹窗
        H5FORM:57,//h5表单组件弹窗
        FORMEVENT: 58, //模板AR编辑表单内容
        NEARBY: 59,//模板AR附近搜索
    },
    DIALOG_TYPE_MAPPING: {
        1: "link",
        9: "picture",
        4: "video",
        6: "music",
        5: "threed",
        7: "album",
        3: "extend",
        17: "materials",
        18: "animations",
        50: "resource",
        51: "uploadPicture",
        52: "previewInPhone",
        53: "address",
        54: "permission",
        55: "help_h5",//h5用于红包或者围观组件提示弹窗
        56: 'playVideo',//h5用于播放视频弹窗
        57: 'h5Form',
        58: "formevent",//提交表单
        59: "nearby",//模板AR附近搜索
    },
    TEMPLATE_TYPE: {
        0: "call",
        1: "website",
        8: "download",
        2: "location",
        3: "introduce",
        9: "image",
        4: "video",
        7: "album",
        6: "music",
        5: "model",
        11: "animation",
        14: "playVideo",
        15: "pageJump",
        17: "materials",
        18: "animations",
        19: "fixedbtn",
        10: "text",
        21: "nearby",
        22: "form"
    },
    WIDGET_TYPE_MAPPING: {
        0: "draw",
        1: "link",
        2: "draw",
        3: "extend",
        4: "video",
        5: "threed",
        6: "music",
        7: "picture",
        8: "app_download",
        9: "picture",
        10: "text",
        12: "graph",
        16: "redbag",
        19: "fixedbtn",
        20: "lookers",
        21: "nearby",
        22: 'draw',
        23: "hopebank"
    },
    WIDGET_TYPE: {
        CALLME: 0,
        LINK: 1,
        GEO: 2,
        EXTEND: 3,
        VIDEO: 4,
        THREED: 5,
        MUSIC: 6,
        ALBUM: 7,
        APP_DOWNLOAD: 8,
        PICTURE: 9,
        TEXT: 10,
        TRIGGER: 11,
        GRAPH: 12,
        LINE: 13,
        VIDEO_EXT: 14,
        PAGE_JUMP: 15,
        REDBAG: 16,
        CHANGE_MATERIALS: 17,
        CHANGE_ANIMATIONS: 18,
        FIXEDBTN: 19,
        LOOKERS: 20,
        NEARBY: 21,
        FORM:22,
        HOPEBANK: 23,
    },
    STEREO_TYPE: {
        0: "call",
        1: "link",
        2: "nav",
        3: "extend",
        4: "video",
        5: "threed",
        6: "music",
        7: "album",
        8: "download",
        9: "img",
        10: "text",
        11: "animation",
        12: "graph",
        14: "playVideo",
        15: "pageJump",
        16: "redbag",
        17: "materials",
        18: "animations",
        19: "fixedbtn",
        20: "lookers",
        21: "nearBy",
        22: "form",
        23: "hopebank",
    },
    INFO_TYPES: {
        SUCCESS: "success",
        INFO: "info",
        WARNING: "warning",
        NOTICE: "notice",
        ERROR: "danger",
        FATAL: "fatal"
    },
    PROPERTY_FIELDS: [
        "offset_x",
        "offset_y",
        "offset_z",

        "rotate_x",
        "rotate_y",
        "rotate_z",
        "scale",
        "light",

        "color",
        "opacity",
        "label",
        "custom",
        "shape",

        "t_font_size",
        "t_font_family",

        "gshape",
        "radius",

        "width",
        "height",

        "auto_play",
        "repeat",
        "single_page",

        "action",
        "turning_delay",
        "opacity",

        "icon",
        "tip_text",
        "pause",

        "red_game_duration",
        "red_total_cash",
        "red_packet_count",
        "red_allot",
        "red_ratio",
        "red_auth",
        "red_auth_times",
        "red_auth_age",
        "red_style",
        "red_shared_can_again",
        "red_custom",
        "start_time"
    ],
    ANIMATION_TYPE_STRUCTS: [
        {
            an_type: 1,
            an_type_display:$._("Fade in"),
            image_url: "/static/idealsee/img/layer/animation/btn_danru_normal.png",
            image_disabled_url: "/static/idealsee/img/layer/animation/btn_danru_disabled.png",
            clashs: [5, 7],
            attrs: {
                music: true,
                exclusive: false
            },
            not_support_action_types: [5]
        }, {
            an_type: 2,
            an_type_display: $._('Wipe out'),
            image_url: "/static/idealsee/img/layer/animation/btn_cachu_normal.png",
            image_disabled_url: "/static/idealsee/img/layer/animation/btn_cachu_disabled.png",
            clashs: [3, 4, 5, 6, 7, 8],
            attrs: {
                music: true,
                direction: true,
                exclusive: false
            },
            not_support_action_types: [5]
        }, {
            an_type: 3,
            an_type_display:$._('Fly into'),
            image_url: "/static/idealsee/img/layer/animation/btn_feiru_normal.png",
            image_disabled_url: "/static/idealsee/img/layer/animation/btn_feiru_disabled.png",
            clashs: [2, 4, 5, 6, 7, 11],
            attrs: {
                music: true,
                direction: true,
                exclusive: false
            }
        }, {
            an_type: 4,
            an_type_display: $._('Cut'),
            image_url: "/static/idealsee/img/layer/animation/btn_qieru_normal.png",
            image_disabled_url: "/static/idealsee/img/layer/animation/btn_qieru_disabled.png",
            clashs: [2, 3, 5, 6, 7, 11],
            attrs: {
                music: true,
                direction: true,
                exclusive: false
            },
            not_support_action_types: [5]
        }, {
            an_type: 5,
            an_type_display: $._('Opacity'),
            image_url: "/static/idealsee/img/layer/animation/btn_toumingdu_normal.png",
            image_disabled_url: "/static/idealsee/img/layer/animation/btn_toumingdu_disabled.png",
            clashs: [1, 2, 3, 4, 6, 7, 8, 10, 11],
            attrs: {
                music: true,
                exclusive: "opacity",
                repeat: true
            },
            defaults: {
                if_repeat: true,
                single_speed: 0.5,
                start_value: 0,
                end_value: 1
            },
            not_support_action_types: [5]
        }, {
            an_type: 6,
            an_type_display: $._('Bounce'),
            image_url: "/static/idealsee/img/layer/animation/btn_tantiao_normal.png",
            image_disabled_url: "/static/idealsee/img/layer/animation/btn_tantiao_disabled.png",
            clashs: [2, 3, 4, 5, 7, 11],
            attrs: {
                music: true,
                direction: true,
                exclusive: false
            }
        }, {
            an_type: 7,
            an_type_display: $._('Fade out'),
            image_url: "/static/idealsee/img/layer/animation/btn_jianying_normal.png",
            image_disabled_url: "/static/idealsee/img/layer/animation/btn_jianying_disabled.png",
            clashs: [1, 2, 3, 4, 5, 6, 8, 10, 11],
            attrs: {
                music: true,
                exclusive: false
            },
            not_support_action_types: [5]
        }, {
            an_type: 8,
            an_type_display:$._('Zoom'),
            image_url: "/static/idealsee/img/layer/animation/btn_suofang_normal.png",
            image_disabled_url: "/static/idealsee/img/layer/animation/btn_suofang_disabled.png",
            clashs: [2, 5, 7],
            attrs: {
                music: true,
                exclusive: "zoom",
                repeat: true
            },
            defaults: {
                if_repeat: true,
                single_speed: 0.5,
                start_value: 0.5,
                end_value: 1.5
            }
        },
        {
            an_type: 10,
            an_type_display: $._("Rotate"),
            image_url: "/static/idealsee/img/layer/animation/btn_xuanzhuan_normal.png",
            image_disabled_url: "/static/idealsee/img/layer/animation/btn_xuanzhuan_disabled.png",
            clashs: [5, 7],
            attrs: {
                music: true,
                direction: false,
                exclusive: "rotate",
                repeat: true
            },
            defaults: {
                tween:1,
                if_repeat: true,
                single_speed: 0.5
            },
        }, {
            an_type: 11,
            an_type_display:$._('Turn'),
            image_url: "/static/idealsee/img/layer/animation/btn_fanzhuan_normal.png",
            image_disabled_url: "/static/idealsee/img/layer/animation/btn_fanzhuan_disabled.png",
            clashs: [5, 7],
            attrs: {
                music: true,
                direction: false,
                exclusive: "turn",
                repeat: false
            },
            defaults: {
                if_repeat: false
            }
        }, {
            an_type: 12,
            an_type_display: $._("Path"),
            image_url: "/static/idealsee/img/layer/animation/btn_fanzhuan_normal.png",
            image_disabled_url: "/static/idealsee/img/layer/animation/btn_fanzhuan_disabled.png",
            clashs: [3, 4, 5, 6]
        }, {
            an_type: 23,
            an_type_display: $._("Zoom hidden"),
            clashs: []
        }, {
            an_type: 24,
            an_type_display: $._("Zoom and Move"),
            clashs: []
        }, {
            an_type: 25,
            an_type_display: $._("Fade in and Move"),
            clashs: []
        }, {
            an_type: 26,
            an_type_display: $._("Zoom and Rotate"),
            clashs: []
        }, {
            an_type: 27,
            an_type_display: $._("Rotate and Fly into"),
            clashs: []
        }, {
            an_type: 28,
            an_type_display: $._("Light and Erase"),
            clashs: []
        }
    ],
    IMGSIZE_PAGE_BACK:{//h5页面背景图片限制=
        width: 640,
        height: 1010
    },
    IMGSIZE_FLOATING:{//浮屏背景图片限制=
        width: 720,
        height: 1280,
    },
    IMGSIZE_H5SHARE:{//微信分享图标限制不超过
        width: 480,
        height: 480,
    },
    IMGSIZE_PICSHARE:{//微信分享图片限制不超过
        width: 640,
        height: 640,
    },
    // AR3.0 客户端h5百度搜索
    BAIDUSEARCH_TYPES:{
        0:"picture",
        1:"text",
        2:"picture",
        3:"news",
        4:"map",
        5:"video",
        6:"view"
    },
    FORMTYPE:[{//表单组件类型
            type:0,
            value: $._("Booking registration"),
            icon_class:'icon-booking'
        },{
            type:1,
            value: $._("Job application"),
            icon_class: 'icon-job'
        },{
            type:2,
            value: $._("Prizes sent"),
            icon_class: 'icon-prizes'
        },{
            type:3,
            value: $._("Custom"),
            icon_class: 'icon-custom'
        }
    ],
    FORM_TYPES:{
        BOOKING: 0,
        JOB: 1,
        PRIZES: 2,
        CUSTOM:3,
    },
    ALLFORMCONTENTITEM:[{
        value:$._("Full name"),
        name: 'name',
        required: 1
    },{
        value:$._("Sex"),
        name: 'sex',
        required: 0
    },{
        value:$._("Guest phone"),
        name: 'phone',
        required: 1,
        SMS: {
            name:'SMS',
            required: 0,
            value: $._("need sms verify")
        }
    },{
        value:$._("Email"),
        name: 'email',
        required: 1
    },{
        value:$._("Company"),
        name: 'company',
        required: 1
    },{
        value:$._("Address"),
        name: 'address',
        required: 1
    },{
        value:$._("Message"),
        name: 'message',
        required: 0
    },],
    BOOKINGFORMITEM:['name','phone','message'],//预约报名表单内容
    JOBFORMITEM:['name','phone','email','message'],//职位申请表单内容
    PRIZESFORMITEM:['name','phone','address','message'],//奖金内容
};

 module.exports = consts;
